package com.ian.service.impl;

import com.ian.dao.PerCommentMapper;
import com.ian.pojo.PerComment;
import com.ian.service.PerCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PerCommentServiceImpl implements PerCommentService {
    @Autowired
    PerCommentMapper perCommentMapper;

    @Override
    public int insert(PerComment record) {
        return perCommentMapper.insert(record);
    }

    @Override
    public List<PerComment> findByStallId(Integer perStallId) {
        return perCommentMapper.findByStallId(perStallId);
    }

    @Override
    public PerComment selectByPrimaryKey(Integer perCommentId) {
        return perCommentMapper.selectByPrimaryKey(perCommentId);
    }
}
